package com.fumihiko.modules.jxxm.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.fumihiko.modules.jxxm.entity.HonorableEmployeesEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fumihiko.modules.jxxm.entity.RetiredEmployeesEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 离休人员表
 *
 * @author hanwenpeng
 * @email devilzwy@gmail.com
 * @date 2022-03-04 09:46:14
 */
@Mapper
public interface HonorableEmployeesDao extends BaseMapper<HonorableEmployeesEntity> {

    List<HonorableEmployeesEntity> getName(String query);

    List<HonorableEmployeesEntity> listExcel();

    void removeByState(Long[] ids);

    List<String> queryRepeatList();

    List<HonorableEmployeesEntity> listDeathExcel(@Param(Constants.WRAPPER) QueryWrapper<RetiredEmployeesEntity> queryWrapper);

    void recoveryById(Long[] ids);

    List<HonorableEmployeesEntity> getAllList();
}
